package com.zhima.elastic.constant;

public class QuestionDslConstant {
    public static final String QUESTION_MAPPING_TEMPLATE = "{\n" +
            "    \"mappings\": {\n" +
            "        \"properties\": {\n" +
            "            \"id\": {\n" +
            "                \"type\": \"keyword\"\n" +
            "            },\n" +
            "            \"number\": {\n" +
            "                \"type\": \"keyword\"\n" +
            "            },\n" +
            "            \"scope\": {\n" +
            "                \"type\": \"keyword\"\n" +
            "            },\n" +
            "            \"labels\": {\n" +
            "                \"type\": \"keyword\"\n" +
            "            },\n" +
            "            \"difficulty\": {\n" +
            "                \"type\": \"keyword\"\n" +
            "            },\n" +
            "            \"passingRate\": {\n" +
            "                \"type\": \"double\",\n" +
            "                \"index\": false\n" +
            "            },\n" +
            "            \"title\": {\n" +
            "                \"type\": \"text\",\n" +
            "                \"analyzer\": \"ik_smart\",\n" +
            "                \"copy_to\": \"all\"\n" +
            "            },\n" +
            "            \"content\": {\n" +
            "                \"type\": \"text\",\n" +
            "                \"analyzer\": \"ik_smart\",\n" +
            "                \"copy_to\": \"all\"\n" +
            "            },\n" +
            "            \"all\": {\n" +
            "                \"type\": \"text\",\n" +
            "                \"analyzer\": \"ik_smart\"\n" +
            "            }\n" +
            "        }\n" +
            "    }\n" +
            "}";
}
